package zhihui.mobile.presenter.register;

import android.content.Context;

import zhihui.mobile.presenter.register.IRegisterContract.IRegisterPersenter;
import zhihui.mobile.ui.IView;

/**
 * Created by 张公铭 on 2017/7/4 0004.
 */

public class RegisterPersenter implements IRegisterPersenter
{
    private  Context mContext;
    private IRegisterContract.IRegisterView registerView;

    @Override
    public void init(IView view, Context context)
    {
        mContext = context;
        registerView = (IRegisterContract.IRegisterView) view;
    }

    @Override
    public void onResume()
    {

    }

    @Override
    public void onStart()
    {

    }

    @Override
    public void onPause()
    {

    }

    @Override
    public void onStop()
    {

    }

    @Override
    public void onDestroy()
    {

    }

    @Override
    public void showAddressFragment(boolean isLoaction)
    {
        registerView.showAddressFragment(isLoaction);
    }

    @Override
    public void showPhoneFragment()
    {
        registerView.showPhoneFragment();
    }

    @Override
    public void showPhoneCodeFragment()
    {
        registerView.showPhoneCodeFragment();
    }

    @Override
    public void showPasswordFragment()
    {
        registerView.showPasswordFragment();
    }

}
